package com.blog.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 日志相关的实体类
 *
 * @author wmb
 *
 * @since 2021-2-8
 */
@ApiModel("日志相关的实体类")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Logger implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("日志主键")
    private Integer id;

    @ApiModelProperty("产生的动作")
    private String action;

    @ApiModelProperty("产生的数据")
    private String logData;

    @ApiModelProperty("创建的人的id")
    private Integer authorId;

    @ApiModelProperty("日志产生的ip")
    private String ip;

    @ApiModelProperty("日志创建时间")
    private Date createTime;
}
